Tor functor